package com.itheima.health.dao;

import com.itheima.health.pojo.User;
import org.apache.ibatis.annotations.Param;
import tk.mybatis.mapper.common.Mapper;

/**
 * 用户数据访问层
 */
public interface UserDao extends Mapper<User> {
    /**
     * 根据前端传送过来的username查询
     * @param username
     * @return
     */
    User selectByUsername(@Param("username") String username);
}
